<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditClientTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditClientLabel_idinscrit}" for="idinscrit" />
                    <h:inputText id="idinscrit" value="#{clientController.selected.idinscrit}" title="#{bundle.EditClientTitle_idinscrit}" required="true" requiredMessage="#{bundle.EditClientRequiredMessage_idinscrit}"/>
                    <h:outputLabel value="#{bundle.EditClientLabel_nom}" for="nom" />
                    <h:inputText id="nom" value="#{clientController.selected.nom}" title="#{bundle.EditClientTitle_nom}" required="true" requiredMessage="#{bundle.EditClientRequiredMessage_nom}"/>
                    <h:outputLabel value="#{bundle.EditClientLabel_prenom}" for="prenom" />
                    <h:inputText id="prenom" value="#{clientController.selected.prenom}" title="#{bundle.EditClientTitle_prenom}" required="true" requiredMessage="#{bundle.EditClientRequiredMessage_prenom}"/>
                    <h:outputLabel value="#{bundle.EditClientLabel_login}" for="login" />
                    <h:inputText id="login" value="#{clientController.selected.login}" title="#{bundle.EditClientTitle_login}" required="true" requiredMessage="#{bundle.EditClientRequiredMessage_login}"/>
                    <h:outputLabel value="#{bundle.EditClientLabel_password}" for="password" />
                    <h:inputText id="password" value="#{clientController.selected.password}" title="#{bundle.EditClientTitle_password}" required="true" requiredMessage="#{bundle.EditClientRequiredMessage_password}"/>
                    <h:outputLabel value="#{bundle.EditClientLabel_adresseinsc}" for="adresseinsc" />
                    <h:inputText id="adresseinsc" value="#{clientController.selected.adresseinsc}" title="#{bundle.EditClientTitle_adresseinsc}" />
                    <h:outputLabel value="#{bundle.EditClientLabel_tel}" for="tel" />
                    <h:inputText id="tel" value="#{clientController.selected.tel}" title="#{bundle.EditClientTitle_tel}" required="true" requiredMessage="#{bundle.EditClientRequiredMessage_tel}"/>
                    <h:outputLabel value="#{bundle.EditClientLabel_banque}" for="banque" />
                    <h:inputText id="banque" value="#{clientController.selected.banque}" title="#{bundle.EditClientTitle_banque}" required="true" requiredMessage="#{bundle.EditClientRequiredMessage_banque}"/>
                    <h:outputLabel value="#{bundle.EditClientLabel_prospect}" for="prospect" />
                    <h:selectOneMenu id="prospect" value="#{clientController.selected.prospect}" title="#{bundle.EditClientTitle_prospect}" required="true" requiredMessage="#{bundle.EditClientRequiredMessage_prospect}">
                        <f:selectItems value="#{prospectController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{clientController.update}" value="#{bundle.EditClientSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditClientViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{clientController.prepareList}" value="#{bundle.EditClientShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditClientIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
